package com.liao.member.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;

import java.util.Arrays;

/**
 * @Author: ljt
 * @Description: TODO
 * @DateTime: 2025/3/24 下午4:22
 **/
@Configuration
public class FeignConfig {

    @Bean
    public MappingJackson2HttpMessageConverter feignJacksonConverter() {
        MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();
        converter.setSupportedMediaTypes(Arrays.asList(MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN));
        return converter;
    }
}